package NProfessor;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.CardLayout;
import javax.swing.JButton;
import java.awt.FlowLayout;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import javax.swing.JTextField;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.JLabel;

public class ProfessorScreenOut extends JFrame {

	private JPanel contentPane;
	private JLabel nlb1;
	private JLabel nlb5;
	private JLabel nlb6;
	private JLabel nlb7;
	private JLabel nlb8;
	private JLabel nlb2;
	private JLabel nlb3;
	private JLabel nlb4;
	private JLabel nlb11;
	private JLabel nlb51;
	private JLabel nlb61;
	private JLabel nlb12;
	private JLabel nbl13;
	private JLabel nlb71;
	private JLabel nbl14;
	private JLabel nlb81;
	private JPanel panel;
	private JButton btn;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ProfessorScreenOut frame = new ProfessorScreenOut();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}
	

	/**
	 * Create the frame.
	 */
	public ProfessorScreenOut() {
		setTitle("교수 개인정보 출력창");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		

		College_ProfessorVO p = new College_ProfessorVO();

		
		
		JPanel top = new JPanel();
		top.setPreferredSize(new Dimension(10, 200));
		contentPane.add(top, BorderLayout.NORTH);
		GridBagLayout gbl_top = new GridBagLayout();
		gbl_top.columnWidths = new int[]{97, 65, 0, 0, 0, 0, 0};
		gbl_top.rowHeights = new int[]{0, 0, 0, 0, 0};
		gbl_top.columnWeights = new double[]{1.0, 1.0, 1.0, 1.0, 0.0, 0.0, Double.MIN_VALUE};
		gbl_top.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		top.setLayout(gbl_top);
		
		nlb1 = new JLabel("교수 번호");
		GridBagConstraints gbc_nlb1 = new GridBagConstraints();
		gbc_nlb1.insets = new Insets(0, 0, 5, 5);
		gbc_nlb1.gridx = 0;
		gbc_nlb1.gridy = 0;
		top.add(nlb1, gbc_nlb1);
		
		nlb2 = new JLabel("등록 일자");
		GridBagConstraints gbc_nlb2 = new GridBagConstraints();
		gbc_nlb2.insets = new Insets(0, 0, 5, 5);
		gbc_nlb2.gridx = 1;
		gbc_nlb2.gridy = 0;
		top.add(nlb2, gbc_nlb2);
		
		nlb3 = new JLabel("이름");
		GridBagConstraints gbc_nlb3 = new GridBagConstraints();
		gbc_nlb3.insets = new Insets(0, 0, 5, 5);
		gbc_nlb3.gridx = 2;
		gbc_nlb3.gridy = 0;
		top.add(nlb3, gbc_nlb3);
		
		nlb4 = new JLabel("전화 번호");
		GridBagConstraints gbc_nlb4 = new GridBagConstraints();
		gbc_nlb4.insets = new Insets(0, 0, 5, 5);
		gbc_nlb4.gridx = 3;
		gbc_nlb4.gridy = 0;
		top.add(nlb4, gbc_nlb4);
		
		nlb11 = new JLabel(p.getPROF_NO());
		GridBagConstraints gbc_nlb11 = new GridBagConstraints();
		gbc_nlb11.insets = new Insets(0, 0, 5, 5);
		gbc_nlb11.gridx = 0;
		gbc_nlb11.gridy = 1;
		top.add(nlb11, gbc_nlb11);
		
		nlb12 = new JLabel(" ");
		GridBagConstraints gbc_nlb12 = new GridBagConstraints();
		gbc_nlb12.insets = new Insets(0, 0, 5, 5);
		gbc_nlb12.gridx = 1;
		gbc_nlb12.gridy = 1;
		top.add(nlb12, gbc_nlb12);
		
		nbl13 = new JLabel(p.getPROF_NAME());
		GridBagConstraints gbc_nbl13 = new GridBagConstraints();
		gbc_nbl13.insets = new Insets(0, 0, 5, 5);
		gbc_nbl13.gridx = 2;
		gbc_nbl13.gridy = 1;
		top.add(nbl13, gbc_nbl13);
		
		nbl14 = new JLabel(p.getPROF_TEL());
		GridBagConstraints gbc_nbl14 = new GridBagConstraints();
		gbc_nbl14.insets = new Insets(0, 0, 5, 5);
		gbc_nbl14.gridx = 3;
		gbc_nbl14.gridy = 1;
		top.add(nbl14, gbc_nbl14);
		
		nlb5 = new JLabel("주소");
		GridBagConstraints gbc_nlb5 = new GridBagConstraints();
		gbc_nlb5.insets = new Insets(0, 0, 5, 5);
		gbc_nlb5.gridx = 0;
		gbc_nlb5.gridy = 2;
		top.add(nlb5, gbc_nlb5);
		
		nlb6 = new JLabel("사무실");
		GridBagConstraints gbc_nlb6 = new GridBagConstraints();
		gbc_nlb6.insets = new Insets(0, 0, 5, 5);
		gbc_nlb6.gridx = 1;
		gbc_nlb6.gridy = 2;
		top.add(nlb6, gbc_nlb6);
		
		nlb7 = new JLabel("담당학과");
		GridBagConstraints gbc_nlb7 = new GridBagConstraints();
		gbc_nlb7.insets = new Insets(0, 0, 5, 5);
		gbc_nlb7.gridx = 2;
		gbc_nlb7.gridy = 2;
		top.add(nlb7, gbc_nlb7);
		
		nlb8 = new JLabel("담당과목");
		GridBagConstraints gbc_nlb8 = new GridBagConstraints();
		gbc_nlb8.insets = new Insets(0, 0, 5, 5);
		gbc_nlb8.gridx = 3;
		gbc_nlb8.gridy = 2;
		top.add(nlb8, gbc_nlb8);
		
		nlb51 = new JLabel(p.getPROF_ADDR());
		GridBagConstraints gbc_nlb51 = new GridBagConstraints();
		gbc_nlb51.insets = new Insets(0, 0, 0, 5);
		gbc_nlb51.gridx = 0;
		gbc_nlb51.gridy = 3;
		top.add(nlb51, gbc_nlb51);
		
		nlb61 = new JLabel(p.getPROF_ADDR());
		GridBagConstraints gbc_nlb61 = new GridBagConstraints();
		gbc_nlb61.insets = new Insets(0, 0, 0, 5);
		gbc_nlb61.gridx = 1;
		gbc_nlb61.gridy = 3;
		top.add(nlb61, gbc_nlb61);
		
		nlb71 = new JLabel(" ");
		GridBagConstraints gbc_nlb71 = new GridBagConstraints();
		gbc_nlb71.insets = new Insets(0, 0, 0, 5);
		gbc_nlb71.gridx = 2;
		gbc_nlb71.gridy = 3;
		top.add(nlb71, gbc_nlb71);
		
		nlb81 = new JLabel(" ");
		GridBagConstraints gbc_nlb81 = new GridBagConstraints();
		gbc_nlb81.insets = new Insets(0, 0, 0, 5);
		gbc_nlb81.gridx = 3;
		gbc_nlb81.gridy = 3;
		top.add(nlb81, gbc_nlb81);
		
		
		

		JPanel bottom = new JPanel();
		contentPane.add(bottom, BorderLayout.SOUTH);
		
		btn = new JButton("확인");
		bottom.add(btn);
		
	}}
